import request from '@/utils/request'

// 查询店铺指标数据列表
export function listStoreIndicators(query) {
  return request({
    url: '/business/storeIndicators/list',
    method: 'get',
    params: query
  })
}

// 查询店铺指标数据详细
export function getStoreIndicators(id) {
  return request({
    url: '/business/storeIndicators/' + id,
    method: 'get'
  })
}

// 新增店铺指标数据
export function addStoreIndicators(data) {
  return request({
    url: '/business/storeIndicators',
    method: 'post',
    data: data
  })
}

// 修改店铺指标数据
export function updateStoreIndicators(data) {
  return request({
    url: '/business/storeIndicators',
    method: 'put',
    data: data
  })
}

// 删除店铺指标数据
export function delStoreIndicators(id) {
  return request({
    url: '/business/storeIndicators/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/storeIndicators/export',
    method: 'post',
    data: data
  })
}

// 获取所负责的店铺列表
export function getStoreList() {
  return request({
    url: '/business/storeMgmt/getStoreList',
    method: 'get'
  })
}

// 查询店铺指标数据列表(不分页)
export function allList(query) {
  return request({
    url: '/business/storeIndicators/allList',
    method: 'get',
    params: query
  })
}
